package com.haiyangwang1.lesson12.ex2;

public class Canlender1 {
    public void getCanlender(){
        int totalDays = 0;
        int monthDay = 0;
        int temp = totalDays % 7;

        System.out.println("日\t一\t二\t三\t四\t五\t六");
        for (int i=1; i<=temp; i++){
            System.out.print("\t");
        }

        for (int i=1; i<=monthDay; i++){
            System.out.print(i + "\t");
            if((totalDays+i) % 7 == 0){
                System.out.println();
            }
        }
    }

}
